/*
 * @Descripttion: 
 * @version: @ 1.0.0
 * @Author: 朱江洲
 * @Date: 2021-12-06 17:13:31
 * @LastEditors: 朱江洲
 * @LastEditTime: 2022-05-23 14:36:40
 */
import request from '@/utils/request'

// 查询资质信息列表
export function listQualificationInfo(query) {
  return request({
    url: '/qualification/qualificationInfo/list',
    method: 'get',
    params: query
  })
}

// 查询资质信息详细
export function getQualificationInfo(id) {
  return request({
    url: '/qualification/qualificationInfo/' + id,
    method: 'get'
  })
}

// 新增资质信息
export function addQualificationInfo(data) {
  return request({
    url: '/qualification/qualificationInfo',
    method: 'post',
    data: data
  })
}

// 修改资质信息
export function updateQualificationInfo(data) {
  return request({
    url: '/qualification/qualificationInfo',
    method: 'put',
    data: data
  })
}

// 删除资质信息
export function delQualificationInfo(id) {
  return request({
    url: '/qualification/qualificationInfo/' + id,
    method: 'delete'
  })
}

// 导出资质信息
export function exportQualificationInfo(query) {
  return request({
    url: '/qualification/qualificationInfo/export',
    method: 'get',
    params: query
  })
}
// 导出资质信息
export function changeDirector(query) {
  return request({
    url: '/qualification/qualificationInfo/changeDirector',
    method: 'get',
    params: query
  })
}
// 导入
export const importType = data => {
  return request({
    method: 'post',
    url: '/qualification/qualificationInfo/importType',
    data
  })
}
